<template>
  <div class="info">
    <!-- 左边 -->
    <div class="info-base">
      <el-card class="info-base-card">
        <template #header>
          <div class="base-card-header">
            <span>个人信息</span>
          </div>
        </template>
        <div class="base-card-content">
          <InfoBase />
        </div>
      </el-card>
    </div>
    <!-- 右边 -->
    <div class="info_edit">
      <el-card class="edit-base-card">
        <template #header>
          <div class="edit-card-header">
            <span>基本资料</span>
          </div>
        </template>
        <div class="edit-card-content">
          <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
            <el-tab-pane label="基本资料" name="editInfo"><EditInfo /></el-tab-pane>
            <el-tab-pane label="修改密码" name="editpass"><EditPass /></el-tab-pane>
          </el-tabs>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import InfoBase from './components/InfoBase'
import EditInfo from './components/InfoEdit/EditInfo.vue'
import EditPass from './components/InfoEdit/EditPass.vue'

const activeName = ref('editInfo')

const handleClick = () => {}
</script>

<style lang="less" scoped>
.info {
  display: flex;
  .info-base {
    width: 300px;
    .base-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
    }

    // .base-card-content {
    //   width: 100%;
    //   height: 100%;
    //   .avatar {
    //     height: 110px;
    //     text-align: center;
    //     border-bottom: 1px solid #eee;
    //   }
    // }
  }

  .info_edit {
    flex: 1;
    margin-left: 20px;
    .edit-card-header {
      user-select: none;
    }
    .edit-card-content {
      .tabs {
        user-select: none;
      }
    }
  }
}
/deep/ .el-card__header {
  padding: 15px !important;
}
// /deep/ .el-card__body {
// padding: 15px 20px 20px 20px !important;
// }
</style>
